import { createBrowserRouter } from "react-router-dom";
import { Navigate } from "react-router-dom";
import Home from '../pages/home/Index'
import Todo from '../pages/todo/Index'
import Message from '../pages/meassage/Index'
import App from "../App";

let routes =createBrowserRouter([
    {
        path:'/',
         element:<App></App>,
         children:[
            {
                path:'/home',
                element:<Home></Home>
            },
            {
                path:'/todo',
                element:<Todo></Todo>
            },
            {
                path:'/message',
                element:<Message></Message>
            }
         ]
    }
])

export default routes;
